/************************* (C) COPYRIGHT 2008 Domain **************************
 * File Name   : gprs.h                                                       *
 * Author      : Domain                                                       *
 * E-mail      : do.main@msn.com                                              *
 * Version     : 1.0                                                          *
 * Date        : 2008/5/27                                                    *
 * Description :                                                              *
 ******************************************************************************/

#ifndef __GPRS_H
#define __GPRS_H

#include "modem.h"

typedef enum
{
  GPRS_OK = 0, 
  GPRS_INIT_FAIL, 
  GPRS_OPEN_FAIL
} GPRS_ERR;

typedef enum
{
  GPRS_Unknown = 0, 
  GPRS_Established, 
  GPRS_Disconnected 
} GPRS_State;

MODEM_ERR  DialGPRS(void);
GPRS_ERR   ConnectGPRS(void);
void       CloseGPRS(void);
GPRS_State GetGPRSState(void);
void       ProcessGPRSData(void);

#endif /* __GPRS_H */

/************************* (C) COPYRIGHT 2008 Domain ******* END OF FILE ******/
